package com.ruibang.glass.sale.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 销售出库管理物品
 * </p>
 *
 * @author mameng
 * @since 2024-04-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(description = "销售出库管理物品")
@TableName(value = "g_sales_shipping_items")
public class SalesShippingItems extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一标识符")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "产品名称")
    private String productName;

    @ApiModelProperty(value = "产品名称")
    private String productId;

    @ApiModelProperty(value = "执行标准")
    private String executionStandard;

    @ApiModelProperty(value = "品级")
    private String grade;

    @ApiModelProperty(value = "数量")
    private BigDecimal quantity;

    @ApiModelProperty(value = "水平架")
    private String levelRack;

    @ApiModelProperty(value = "批次号")
    private String batchNumber;

    @ApiModelProperty(value = "出库ID")
    private String shippingId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "产品编码")
    private String productCode;

    @ApiModelProperty(value = "规格型号")
    private String specification;

    @ApiModelProperty(value = "订单Id")
    private String orderId;
    @ApiModelProperty(value = "仓库名称")
    @TableField(exist = false)
    private String warehouseName;
    @ApiModelProperty(value = "仓库Id")
    @TableField(exist = false)
    private String warehouseId;

    @ApiModelProperty(value = "库位")
    @TableField(exist = false)
    private String storageLocation;
    @ApiModelProperty(value = "库位")
    @TableField(exist = false)
    private String modelGrade;

   @ApiModelProperty(value = "库位")
    @TableField(exist = false)
    private String unit;

  @ApiModelProperty(value = "订单号")
    @TableField(exist = false)
    private String number;


}
